package gov.child.entities.vo;

import gov.child.entities.po.EConsult;
import gov.child.entities.vo.annotation.Alias;

import java.util.Date;

/**
 * @author fzh
 * @since 2017/9/13
 */
public class Consult  {
    public static final Consult EMPTY_CONSULT = new Consult();

    public static Consult parseFrom(EConsult consult) {
        return BeanTransformer.transform(Consult.class, consult);
    }
    public static EConsult parseTo(Consult consult) {
        return BeanTransformer.transform(EConsult.class, consult);
    }
    // form consult
    @Alias("id")
    private Integer consultId;
    private Integer deptId;
    private Integer userId;
    private String tel;
    private String addr;
    private String addrCode;
    private String item;
    private String title;
    private String content;
    private Date createTime;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getCreateTime() {

        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getConsultId() {
        return consultId;
    }

    public void setConsultId(Integer consultId) {
        this.consultId = consultId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddrCode() {
        return addrCode;
    }

    public void setAddrCode(String addrCode) {
        this.addrCode = addrCode;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }
}
